From ea894244ed167e5714391b9c72bec9b2604c0a0b Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 2 Nov 2005 11:25:21 +0100 Subject: [PATCH] Make the -V option of xenconsoled actually do something. Signed-off-by: Anthony Liguori --- tools/console/daemon/main.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/console/daemon/main.c b/tools/console/daemon/main.c index 178ae792e2..a62035d81e 100644 --- a/tools/console/daemon/main.c +++ b/tools/console/daemon/main.c @@ -30,10 +30,14 @@ #include "utils.h" #include "io.h" -void usage(char *prg) +static void usage(char *name) { - fprintf(stderr, - "usage: %s [-h] [-V] [-v] [-i]\n", prg); + printf("Usage: %s [-h] [-V] [-v] [-i]\n", name); +} + +static void version(char *name) +{ + printf("Xen Console Daemon 3.0\n"); } int main(int argc, char **argv) @@ -58,7 +62,7 @@ int main(int argc, char **argv) usage(argv[0]); exit(0); case 'V': - //version(argv[0]); + version(argv[0]); exit(0); case 'v': syslog_option |= LOG_PERROR; -- 2.30.2